<template>
  <div class="test-page">
    <button @click="goBack" class="back-btn">返回首页</button>
  </div>
  <div class="container">
    <header class="header">
      <h1>图灵鉴定</h1>
      <h2>TURING AI</h2>
    </header>

    <div class="white-box">
      <section class="ai-result">
        <h3>AI鉴别结果</h3>
        <ul class="cert-list">
          <li>
            <img src="" alt="认证图标" class="cert-icon" />
            中国出入境检验检疫协会T/CRA 74-2024
          </li>
          <li>
            <img src="" alt="认证图标" class="cert-icon" />
            ISO9001:2015质量管理体系认证
          </li>
          <li>
            <img src="" alt="认证图标" class="cert-icon" />
            从鉴定通用及应用到检测鉴定单位
          </li>
          <li>
            <img src="" alt="认证图标" class="cert-icon" />
            中检认证AI鉴别机构
          </li>
        </ul>
      </section>

      <section class="legend">
        <h3>图例</h3>
        <ul class="legend-list">
          <li><span class="legend-dot">A</span> 鉴定</li>
          <li><span class="legend-dot">B</span> 审查</li>
          <li><span class="legend-dot">C</span> 检测</li>
          <li><span class="legend-dot">D</span> 鉴定</li>
        </ul>
      </section>

      <section class="tech-indicators">
        <h3>技术指标</h3>
        <h4>数据来源</h4>
        <div class="image-placeholder">假链接代替图片</div>
      </section>
    </div>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router'

const router = useRouter()
const goBack = () => {
  router.push('/')
}
</script>

<style scoped>
.test-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #1e90ff 0%, #4169e1 100%);
  padding: 20px;
  position: relative;
}

.back-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  color: white;
  cursor: pointer;
  backdrop-filter: blur(5px);
  z-index: 100;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.container {
  width: 375px;
  margin: 0 auto;
  padding: 20px;
  font-family: Arial, sans-serif;
  color: white;
}

.header {
  text-align: center;
  margin-bottom: 30px;
}

.header h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.header h2 {
  font-size: 20px;
  opacity: 0.8;
}

.white-box {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  color: #333;
}

.ai-result, .legend, .tech-indicators {
  margin-bottom: 30px;
}

h3 {
  color: #1e90ff;
  margin-bottom: 15px;
  font-size: 18px;
}

h4 {
  color: #666;
  margin-bottom: 10px;
  font-size: 16px;
}

.cert-list {
  list-style-type: none;
  padding: 0;
}

.cert-list li {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
  color: #666;
}

.cert-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.legend-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.legend-list li {
  display: flex;
  align-items: center;
  font-size: 14px;
}

.legend-dot {
  width: 24px;
  height: 24px;
  background: #1e90ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-right: 8px;
  font-weight: bold;
}

.image-placeholder {
  background: #f5f5f5;
  padding: 20px;
  text-align: center;
  border-radius: 8px;
  color: #999;
}
</style>